package com.jaiai.work.project.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 实体表
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2018-04-19
 */
@TableName("t_entity")
public class TEntity extends Model<TEntity> {

    private static final long serialVersionUID = 1L;

	private Integer id;
    /**
     * 模块ID
     */
	@TableField("modular_id")
	private Integer modularId;
    /**
     * 实体名称
     */
	private String name;
    /**
     * 英文名称
     */
	private String code;
    /**
     * 数据类型
     */
	@TableField("data_type")
	private String dataType;
    /**
     * 是否可为空
     */
	@TableField("is_null")
	private String isNull;
    /**
     * 长度
     */
	private Integer lengeth;
	private String notes;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 创建人
     */
	@TableField("create_by")
	private String createBy;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getModularId() {
		return modularId;
	}

	public void setModularId(Integer modularId) {
		this.modularId = modularId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public String getIsNull() {
		return isNull;
	}

	public void setIsNull(String isNull) {
		this.isNull = isNull;
	}

	public Integer getLengeth() {
		return lengeth;
	}

	public void setLengeth(Integer lengeth) {
		this.lengeth = lengeth;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
